<?php echo $this->Session->flash(); ?>

<?php echo $form->create('EvaluationPhysiographicUnit'); ?>
<table>
    <tr>
        <?php echo $form->hidden("EvaluationPhysiographicUnit.evaluation_appraisal_id", array('value' => $appraisal_id)); ?>
    </tr>
    <tr>
        <td>Área (ha)</td><td><?php echo $form->input("EvaluationPhysiographicUnit.area", array('label' => '')); ?></td>
    </tr>
    <tr>
        <td>Valor unitario ($/ha)</td><td><?php echo $form->input("EvaluationPhysiographicUnit.valor_unitario", array('label' => '')); ?></td>
    </tr>
    <tr>
        <td>Clase Agrológica</td><td><?php echo $form->input("EvaluationPhysiographicUnit.clase_agrologica", array('label' => '', 'options' => array('Sin registro' => 'Sin registro', 'I' => 'I', 'II' => 'II', 'III' => 'III', 'IV' => 'IV', 'V' => 'V', 'VI' => 'VI', 'VII' => 'VII', 'VIII' => 'VIII'))); ?></td>
    </tr>
    <tr>
        <td>¿Es útil?</td><td><?php echo $form->input("EvaluationPhysiographicUnit.util", array('label' => '', 'options' => array('SI' => 'SI', 'NO' => 'NO'))); ?></td>
    </tr>
    <tr>
        <td colspan="2">
            <?php
            if ($this->Session->read('estado') == 0)
                echo $ajax->submit('Guardar', array('url' => array('controller' => 'EvaluationPhysiographicUnits', 'action' => 'add', $appraisal_id), 'update' => 'content', 'indicator' => 'loading'));
            ?>
        </td>
    </tr>
</table>

<?php echo $form->end(); ?>


<table width="100%" border="0"  CellSpacing=10  align="center" >
    <tbody>
        <tr>
            <td><?php echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'EvaluationPhysiographicUnits', 'action' => 'index', $appraisal_id), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading', 'escape' => false)); ?></td>
        </tr>
    </tbody>
</table>